import 'dart:ui';

import 'package:fish_redux/fish_redux.dart';

import '../global_store/state.dart';

class ProfileState implements GlobalBaseState, Cloneable<ProfileState> {
  bool darkOn;

  @override
  ProfileState clone() {
    return ProfileState()
      ..darkOn = darkOn
      ..themeColor = themeColor
      ..userInfo = userInfo;
  }

  @override
  Color themeColor;

  @override
  Map<String, dynamic> userInfo;
}

ProfileState initState(Map<String, dynamic> args) {
  return ProfileState()..darkOn = GlobalState.dark != 0;
}
